#if !defined(__FFMPEG_WIN32_BUILD_HEADER__)
#define __FFMPEG_WIN32_BUILD_HEADER__

#ifdef _WIN32
#pragma once
#endif

#define inline _inline
#define snprintf _snprintf
#define false 0
#define true  1

#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif

#ifndef MAX_STREAM_COUNTS
#define MAX_STREAM_COUNTS	20
#endif

#ifndef	MAX_INPUT_COUNTS
#define MAX_INPUT_COUNTS	10
#endif

#ifndef	MAX_OUTPUT_COUNTS
#define MAX_OUTPUT_COUNTS	10
#endif

#pragma warning(disable: 4244)
#pragma warning(disable: 4047)
#pragma warning(disable: 4024)

#ifdef __cplusplus
extern "C" {  // only need to export C interface if
	// used by C++ source code
#endif
#include "libavformat/avformat.h"
#include "libswscale/swscale.h"
#include "libavfilter/avfilter.h"
#ifdef __cplusplus
}
#endif

//#include "libavcodec/audioconvert.h"

#undef exit

#pragma comment(lib, "avutil.lib")
#pragma comment(lib, "avformat.lib")
#pragma comment(lib, "avcodec.lib")
#pragma comment(lib, "avdevice.lib")
#pragma comment(lib, "swscale.lib")
#pragma comment(lib, "avfilter.lib")

#endif // __FFMPEG_WIN32_BUILD_HEADER__